home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / source / f2c3.2src.lha / f2c-for-SASC651 / libI77 / rawio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  709 b   |  44 lines

  1. #ifdef KR_headers
  2. extern FILE *fdopen();
  3. #else
  4. #ifdef MSDOS
  5. #include "io.h"
  6. #define close _close
  7. #define creat _creat
  8. #define open _open
  9. #define read _read
  10. #define write _write
  11. #endif
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #ifndef MSDOS
  16. #ifdef OPEN_DECL
  17. extern int creat(const char*,int), open(const char*,int);
  18. #endif
  19. #ifndef AMIGA
  20. extern int close(int);
  21. extern int read(int,void*,size_t), write(int,void*,size_t);
  22. extern int unlink(const char*);
  23. #endif
  24. #ifndef _POSIX_SOURCE
  25. #ifndef NON_UNIX_STDIO
  26. extern FILE *fdopen(int, const char*);
  27. #endif
  28. #endif
  29. #endif
  30.  
  31. extern char *mktemp(char*);
  32.  
  33. #ifdef __cplusplus
  34.     }
  35. #endif
  36. #endif
  37.  
  38. #include "fcntl.h"
  39.  
  40. #ifndef O_WRONLY
  41. #define O_RDONLY 0
  42. #define O_WRONLY 1
  43. #endif
  44.